<!--
// Creation History
// CRLOG	:xxxx
// --------------------------------------------------------------
// Company	: HTHK
// NAME   	: ALLUser.jsp
// TITLE  	: Sample to get all user
// FUNCTION	: 
// BY     	: Henry Wong
// DATE   	: 21/03/2005
//--------------------------------------------------------------
// Modification History
//--------------------------------------------------------------
//
//--------------------------------------------------------------
-->

<%@ page import="admin.*" %>
<%@ page import="admin.options.*" %>
<%@ page import="com.ffpc.sql.*"%>

<%@ include     file="header.jsp"  %>
<%
  UserBean alluser = UserProcess.createBean();
  ConnectionFactory cF = new ConnectionFactory();
  Connection con2 = (Connection)connectionFactory.getConnection();
  alluser.setUser_id("%");
  alluser.setUser_name("%");
  UserBean[] allusers 	= UserProcess.find(con2, alluser);
  cF.finalize();
%>

<TABLE border=1>
  <TR>
    <TD>USER ID</TD>
    <TD>USER NAME</TD>
  </TR>
<% 
  for (int i=0; i<allusers.length; i++)  {
%>
  <tr>
    <td><%=allusers[i].getUser_id()%></td>
    <td><%=allusers[i].getUser_name()%></td>
  </tr>
<%
  }
%>
</TABLE>
</BODY>
</HTML>
